made debug switch consistent