added network access function.