parsing the result content body a second time (line 229 already does it). consider reorganizing to avoid redundant work