Index: /trunk/pstamp/scripts/pstamp_finish.pl
===================================================================
--- /trunk/pstamp/scripts/pstamp_finish.pl	(revision 20113)
+++ /trunk/pstamp/scripts/pstamp_finish.pl	(revision 20114)
@@ -159,10 +159,10 @@
         my $exp_id = $job->{exp_id};
 
-        # XXX: get the image_db from a table in the database, or maybe save it in the job
-
-        # unless $exp_id is null (e.g. stack images) get the metadata for this exposure
         my ($row, $req_info, $project) = get_request_info($rows, $rownum);
-        my $proj_hash = resolve_project($project);
+        my $proj_hash = resolve_project($ipprc, $project, $dbname);
         my $image_db = $proj_hash->{dbname};
+
+        # get the metadata for the exposure (if any i.e. stack) 
+        # returns an appropriate string if !$exp_id
         my $exp_info = get_exposure_info($image_db, $exp_id);
 
@@ -182,9 +182,7 @@
 
                     # ra_deg and dec_deg are the coordinates of center of the stamp
-                    #
-                    # XXX  we need to get the center coordinate of the stamp.
-                    # if request used -skycenter then we have it in the request info
-
+                    # XXX: parse the stamp header to find it
                     print $tdf "0.0|0.0|";
+
                     print $tdf "$exp_info|";
                     print $tdf "$req_info|";
