added reconnect sleep