Index: /trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm
===================================================================
--- /trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm	(revision 35314)
+++ /trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm	(revision 35315)
@@ -223,5 +223,14 @@
     my $choose_components = 0;
     if ($stage eq "raw") {
-        $command = "$regtool -processedimfile -dbname $imagedb";
+        if ($component or $use_imfile_id or !$skycenter) {
+            $command = "$regtool -processedimfile -dbname $imagedb";
+            if ($component and $component ne 'all') {
+                $class_id = $component;
+                $component_args = " -class_id $class_id";
+            }
+        } else {
+            $command = "$regtool -processedexp -dbname $imagedb";
+            $choose_components = 1;
+        }
         # XXX: for now restrict lookups to type object 
         # are stamps of detrend exposures interesting?
