small improvements to network example