redesign of from-to implementation: nodes
changed node-edge implementation of chains