various fixes for ROLES with DOI APP