updated to use TetraText's new facade