added reconnection technique