added recovery stuff.