setting up master and slave shell script