better logging in get_response