improving logger