refs #18 change role_type management and bug fixes