added a simple filereader wrapper