New ontype "longrunning"; remove opt(enable_on_off);
be more cautious in ON-OFF transitions.