updated connect script