made crash_recovery public function