adding on_req_method callback