debug errors when status != 0 

debug errors when status != 0