added tree.markPath and tree.clearPath