added logger to scanner