improved the performance of the FileReader. fixes #149