better permissionhandling (Don't copy! Hardcoded!)