added temp setpoint functions and some error handlng