logging improve