added dirtree support (not sure yet if I like it)