correct file reading mode