added reconnect on disconnections