Index: trunk/ippScripts/scripts/magic_process.pl
===================================================================
--- trunk/ippScripts/scripts/magic_process.pl	(revision 20495)
+++ trunk/ippScripts/scripts/magic_process.pl	(revision 20502)
@@ -163,16 +163,18 @@
         }
 
+        # do this in eval so we can fault the exposure without
+        # passing the $magic_id and $node everywhere
         eval {
             foreach my $innode (@$inputs) {
-                my ($image, $mask, $weight) = resolve_inputs($innode);
-
+                # root for inputs from previous stage
                 my $in_uri = $innode->{uri};
-
                 print $infh "$in_uri\n";
+
+                # build image lists by combining the lists from
+                # previous stages
                 cat_list_to_list($ifh, $in_uri, "image.list");
                 cat_list_to_list($mfh, $in_uri, "mask.list");
                 cat_list_to_list($wfh, $in_uri, "weight.list");
                 cat_list_to_list($sfh, $in_uri, "wcs.list") if $skycell_list;
-
             }
             close $infh;
@@ -193,5 +195,5 @@
 
     unless ($no_op) {
-        # RemoveStreaks fails if the output file already exists
+        # RemoveStreaks fails if an output file already exists
         foreach my $output (@outputs) {
             unlink($output) if -e $output;
