added a file reader