work in progress on file reading