make debug-mode easier to switch from/to