some network functions (to be continued)