changed network to only handle ipv4 and removed unused fork code