working on tree API

--HG--
branch : develop