add connect_to method