modify requestHandler method