working on crash recovery