initial restore script