replacing resource server