changed debug's to warn's