add flags and localization