improve logger