add glm support