fixing up file permissions