added a file option to read from a named file