changed network to be a handle class