updated glyph script

Added more debug info support