flags and localization