OLD replication scripts