improvements in management of permissions in Routes and Events.