made a replication scripts into a file