added bad sector cleanup