add ability to flatten a sub-tree into a list
test files
templates are stupid