added start of master/slave detection