wip
glyph: add some support code