made debug an opt