broken, but partial work on tei-a changes