gain, pressuremeasure, units bug fix