added debug to find bugs in roles