updating with http response and debug handling