setting up slave only for the first time