removed weird file permissions
optimizations