improving Logging