updated setmode with deadline and logical supervision