remove debug prints
handleResponse