replication script first draft