added replication handler