masterconnected/disconnected events
fix later repetition