rewrite localization loading