fixed file read