add two new parameters: node_terminus and external_nodes