refactoring bridge and locale