reconnect automatically
leader election