 // separate velocities per type of animation
 
     if(is_command(str, "repeat")){
-      int times = String(arg).toInt();
-      if(times == 0) times = 1;
+      int times = sub_args[0];
+      if(times < 1) times = 1;
       do_repeat(times);
       strcpy(arg, "");
     }

#define DEMO_TOTAL_SIZE (DEMO_OBJECT_SIZE + DEMO_GAP_SIZE)

// be able to reverse shift/animation direction

void do_demo(int count = ANIM_LED_COUNT / DEMO_TOTAL_SIZE){


    else if(is_command(str, "seafoam"))  push_color(seafoam);
    else if(is_command(str, "ltblue"))   push_color(ltblue);
    else if(is_command(str, "dkgray"))   push_color(dkgray);
    else strcpy(arg, str); get_sub_args(arg);

    //strcpy(last, arg);
  } 
