added main node to net.cpp