almost completed the ResourceRequestContext