made debug hidden and switchable.