fixup file permissions