logging for replication added