added reconnect on resume