added replication debugging step.