refactors RoleConstants to enum Role. fixes #19