added logger and log