wrapping of treemachine methods