udpated response parsing to handle new json response spec