add detection of reconnect