now using file passed in on command line