improve localization files handling