document recovering from bad state