Index: trunk/ippTasks/dist.pro
===================================================================
--- trunk/ippTasks/dist.pro	(revision 26081)
+++ trunk/ippTasks/dist.pro	(revision 26082)
@@ -98,4 +98,5 @@
         $selector = $component
     end
+    #echo selector is $selector
     # take last two letters of selector
     # treat it as an integer and use modulous of length of distribution hosts
@@ -106,4 +107,6 @@
     $component_id = $index % $count
 
+    #echo component_id is $component_id
+
     book getword ipphosts distribution $component_id -var host
     if ("$host" == "NULL")
@@ -112,5 +115,10 @@
     end
 
+    #echo host is $host
+
     strsub $template @HOST@ $host -var $varname
+
+    #echo template is $template
+    #echo outdir is $$varname
 end
 
@@ -227,9 +235,6 @@
     end
 
-#    set.host.for.camera $CAMERA $MAGIC_ID
-#    set.workdir.by.camera $CAMERA $MAGIC_ID $WORKDIR_TEMPLATE $default_host WORKDIR
-#    host anyhost
-
-    set.dist.workdir.by.component $STAGE_ID $COMPONENT $OUTDIR_TEMPLATE ipp049 OUTDIR 
+
+    set.dist.workdir.by.component $DIST_STAGE_ID $COMPONENT $OUTDIR_TEMPLATE ipp047 OUTDIR 
     if ("$OUTDIR" == "NULL")
         echo ERROR failed to set workdir for $COMPONENT
