added some logs in Replication