fixed install_master and install_slave