filereader improvement