Initial check-in: several basic localization utilities