adding PatternTranslator
refactoring pattern loader and translators