add replication check.