refactor and transformers setup