get rid of case_mode/case_val in glm2. tomas has removed