added ability to connect nodes