build lists from tree.
note.