fixed bug with readFile, maybe