adds reconnecting and reconnect event