add a reconnect mode