add connect function and initial args parser