moved replace rules into yaml