implemented missing method to register permissions