added response logging