added glyph as a base class for templates, factories and the orm