add connect method