make get_network a member function