renamed doRequest to handle