input from file and command line arguments