implemented resource server