convert RoleResource to return RoleObject and EnvironmentResource

to return EnvironmentObjects