break repository reliance on system net helper. Move net function to helper