added class version of filereader