import tree api definition