generalize minifyVars more