improve reconnecting if you lose your connection