with replication checking