modify to be able to read file from command line