integrated simple localization logic