improve break-on-error; enable toggle commands only when meaningful