fixed the file reader, now works on linux