fixed so an appliance cant have two tasks running at the same time