some fix localize and settings refactoring