implemented most of network.dll
minor fixes