add dirtree and dependencies