added reconnect script