fix transformer from config
and refactor's