being smarter with http.Response.Body parsing