Index: /trunk/ippTasks/register.pro
===================================================================
--- /trunk/ippTasks/register.pro	(revision 16173)
+++ /trunk/ippTasks/register.pro	(revision 16174)
@@ -141,5 +141,5 @@
     book getword regPendingImfile $pageName tmp_class_id -var TMP_CLASS_ID
     book getword regPendingImfile $pageName uri -var URI
-    book getword regPendingImfile $pageName workdir -var WORKDIR
+    book getword regPendingImfile $pageName workdir -var WORKDIR_TEMPLATE
     book getword regPendingImfile $pageName dbname -var DBNAME
 
@@ -148,9 +148,12 @@
 
     # specify choice of remote host
-    if ($parallel)
-      host anyhost
-    else
-      host local
-    end
+    set.host.for.camera $camera $class_id
+
+    # we need to set the workdir based on 1) nebulous or not? 2) chip/host relationship
+    # this function uses workdir_template, workdir_default, volume_template, volume_default,
+    # it sets workdir and volume
+    ### this function needs to be improved: it is using fixed input and output var names
+    ### do we want these types of small outputs to go to a common filesystem?
+    set.workdir.by.camera $CAMERA $TMP_CLASS_ID $WORKDIR_TEMPLATE
 
     ## generate output log based on filerule XXX put this in a function?
Index: /trunk/ippTasks/summit.copy.pro
===================================================================
--- /trunk/ippTasks/summit.copy.pro	(revision 16173)
+++ /trunk/ippTasks/summit.copy.pro	(revision 16174)
@@ -6,4 +6,13 @@
 # pztool -adddatastore -inst gpc1 -telescope ps1 -uri http://conductor/ds/gpc1/index.txt
 # pztool -adddatastore -inst allskycam -telescope ps1 -uri  http://otis1.ifa.hawaii.edu/ds/allskycam/index.txt
+
+# NOTE: workdir / volume mangling and nebulous.  these tasks copy the
+# imfiles from the summit, placing the output files in a directory
+# which is based on the chip/host relationship.  If nebulous is being
+# used, the volume name is set based on the host; if nebulous is not
+# being used, the workdir is set to include the host name.  The copy
+# operation is targetted to the same host by pcontrol.  The value of
+# workdir is set to be a template into which the appropriate value of
+# @HOST@ may be substituted in later scripts.
 
 # the templates are used if we have a class_id/host relationship; if none is found, the default values are used
@@ -282,5 +291,5 @@
 	# XXXX this filename needs to use nebulous names
         $FILENAME = $workdir/$CAMERA/$YEAR/$MONTH/$DAY/$EXP_NAME/$EXP_NAME.$CLASS_ID.fits
-        $FILEROOT = $workdir/$CAMERA/$YEAR/$MONTH/$DAY/$EXP_NAME/$EXP_NAME.$CLASS_ID
+        $FILEROOT = $workdir_template/$CAMERA/$YEAR/$MONTH/$DAY
 
         book setword pzPendingImfile $pageName filename $FILENAME
