pulling network operations off into another file