added localization mode