add connect sample