modified net.go