refactor handling of special runtime permissions
3 files changed