connection now holds the node references instead of index and network