if filename2 is specified, override reading of command line options. instead only read from filename2