modified the node file to connect instead of bind