Index: trunk/ippScripts/scripts/addstar_run.pl
===================================================================
--- trunk/ippScripts/scripts/addstar_run.pl	(revision 32820)
+++ trunk/ippScripts/scripts/addstar_run.pl	(revision 32832)
@@ -37,5 +37,5 @@
 }
 my $minidvodb_path;
-my ( $add_id, $camera, $stage, $outroot, $stageroot, $dbname, $reduction, $dvodb, $minidvodb, $minidvodb_name, $minidvodb_group, $image_only, $verbose, $no_update,
+my ( $add_id, $camera, $stage, $multi_num, $outroot, $stageroot, $dbname, $reduction, $dvodb, $minidvodb, $minidvodb_name, $minidvodb_group, $image_only, $verbose, $no_update,
      $no_op, $redirect, $save_temps);
 GetOptions(
@@ -43,5 +43,5 @@
     'camera|c=s'        => \$camera, # Camera
     'stage|s=s'        => \$stage, # Camera
-    
+    'multi_num|w=s'    => \$multi_num, # the number for a staticskymulti (for finding cmf)
     'dbname|d=s'        => \$dbname, # Database name
     'outroot|w=s'       => \$outroot, # output file base name
@@ -114,4 +114,13 @@
     
 }
+
+if ($stage =~/staticsky_multi/) {
+    $fpaObjects =~ s/smf$/cmf/; #this should do nothing because it was already modded above
+    &my_die( "can't find the filter_num for staticsky_multi, giving up.", $add_id, $PS_EXIT_SYS_ERROR) unless (defined $multi_num);
+    my $nice_num = sprintf ("%03d", $multi_num);
+    $fpaObjects =~ s/cmf$/$nice_num.cmf/;  #this make it look for .001.cmf, etc
+ 
+}
+
 my $traceDest  = $ipprc->filename("TRACE.EXP",          $outroot) or &my_die("Missing entry from camera config", $add_id, $PS_EXIT_CONFIG_ERROR);
 
@@ -190,7 +199,7 @@
         $command .= " -use-name $fpaObjects"; # DVO wants the neb-name as a file reference
 	    $command .= " -image" if $image_only;
-	    if ($stage = ~/staticsky/) {
+	    if ($stage =~ /staticsky/) {
 		$command .= " -accept-astrom ";
-	    }
+	    }  #careful here - this matches staticsky and staticsky_multi
         my $mjd_addstar_start = DateTime->now->mjd;   # MJD of starting script
 
