build TEI reference system