first version of data replication scripts