added recovery of history