added logger for main