added logger support