added hysteresis and critical heater errors