more work on network code