add response logging