support partially restricted modes
Merge pull request #194 from pepijndevos/development

support partially restricted modes