refine the logs