tree of entity groups