reorganized glm-parser