cleanup debug code