fixes related to file permissions