updated spinup script