connecting to given master host