modified exclude-nodes and distances