fixed file op result code checks