moved handling of pools to constructor of network objects
several bugfixes and optimizations