before snapshot restore