added a canReconnect flag