comment clean and logging