tree: base template, not working yet