fixup! [WIP] reimplment tree() function

+ fixed command 'list'