added command line file opening