added logger feature