updated is master script and replication file