glm2: updated line search