refactor requests to request/raw_request in resource