make reconnection feature more deterministic