added replication library