added network service discovery code