tree finally works (somewhat again)