further scanner refactoring / logger stub