hotfix for file permissions checking