auto-download dirtree and make it work in project mode