prepare for localization