base localization implementation