files can now be given through command line arguments