added replication script