a few more file mode changes corrections