addRequestHooks and addResponseHooks