can accept command line argument for file input