bug fix to file permissions and moved folder misc folder to root directory