fix some file mode
disabled some optimizations.