added response parsing error logging