a little better handling of glm2 grid