program for node connection