improved the glyph handling