replacing deprecated get() and set() calls in NetworkLib