add ignore_replication middleware