namedtuple based trees