adjusts environment spec.