remove debug and all refs to it