improve client logging in