addded reconnect