basic for scanner taken from wonderful i18n-tasks