fine-tuning the logging