use passed in httpRes