glm lua wrapper finished