cleaned logging