simplify ML.toNode() and ML.ascendToParent()