change get_html to write response only