fix main dir
change file mode