make backup on unexpected state reset