new version that works with the new RegistrationRole