handle non-json object responses