add connect functionality