fix flat_req_response is not defined