adding task tree access api (has some bugs yet)