minor refactoring. a module to house the types and parsers