added bad response logging