update logger for better logging