added ability to change default file permissions