fix network and add udp example