Adding slave and master
scripting for slave and master