basic localization framework