cleanup debug code.