resource server model impl