Index: /tags/ipp-ps2-20190404/ppStack/src/ppStackPrepare.c
===================================================================
--- /tags/ipp-ps2-20190404/ppStack/src/ppStackPrepare.c	(revision 40768)
+++ /tags/ipp-ps2-20190404/ppStack/src/ppStackPrepare.c	(revision 40769)
@@ -380,4 +380,5 @@
 	psImage *P      = psImageAlloc(m,num,PS_TYPE_F32);
 	
+	// XXX: we should not pass in images to this analysis which have already been rejected by the FWHM limits
 	if (!psMM1DClass(options->inputSeeing,
 			 options->inputSeeing->n,
Index: /tags/ipp-ps2-20190404/pstamp/scripts/detect_query_read
===================================================================
--- /tags/ipp-ps2-20190404/pstamp/scripts/detect_query_read	(revision 40768)
+++ /tags/ipp-ps2-20190404/pstamp/scripts/detect_query_read	(revision 40769)
@@ -244,4 +244,5 @@
 	    $cmd .= " -dateobs_begin $dateobs_begin -dateobs_end $dateobs_end ";
 	    $cmd .= " -ra $ra -decl $dec -radius 1.5 -limit 1 -diff_mode 2";
+            $cmd .= " -diff_mode 2";
 	}
 	elsif ($colData{STAGE}[$i] eq 'diff') {
Index: /tags/ipp-ps2-20190404/pstamp/scripts/dquery_job_run.pl
===================================================================
--- /tags/ipp-ps2-20190404/pstamp/scripts/dquery_job_run.pl	(revision 40768)
+++ /tags/ipp-ps2-20190404/pstamp/scripts/dquery_job_run.pl	(revision 40769)
@@ -133,5 +133,5 @@
     print $targetfile "$r_x $r_y\n";
     my $row = $rows[$i];
-    if ((abs($r_ra - $row->{RA1_DEG}) < 1e-8) && (abs($r_dec - $row->{DEC1_DEG}))) {
+    if ((abs($r_ra - $row->{RA1_DEG}) < 1e-8) && (abs($r_dec - $row->{DEC1_DEG}) < 1e-8)) {
         $row->{X_PXL} = $r_x;
         $row->{Y_PXL} = $r_y;
Index: /tags/ipp-ps2-20190404/pstamp/scripts/dqueryparse.pl
===================================================================
--- /tags/ipp-ps2-20190404/pstamp/scripts/dqueryparse.pl	(revision 40768)
+++ /tags/ipp-ps2-20190404/pstamp/scripts/dqueryparse.pl	(revision 40769)
@@ -216,4 +216,12 @@
 	}
 
+        ## 20190317 MEH hack to add to row
+        # Set common request components
+        my $option_mask |= 1;
+        $option_mask |= $PSTAMP_SELECT_IMAGE;
+        $option_mask |= $PSTAMP_SELECT_MASK;
+        $option_mask |= $PSTAMP_SELECT_VARIANCE;
+        $option_mask |= $PSTAMP_SELECT_PSF;
+
 	# Set up a rowList with default values
 	my @rowList;
@@ -223,4 +231,6 @@
 	    $rowList[$i]->{ID} = $query{$fpa_id}{ROWNUM}[$i];
 	    $rowList[$i]->{COORD_MASK} = 0;
+            # 20190317 MEH hack add to row  
+            $rowList[$i]->{OPTION_MASK} = $option_mask;
 	    # Set default values
 	    $query{$fpa_id}{BAD_COMPONENT}[$i] = 1;
@@ -259,9 +269,9 @@
 	}
 	# Set common request components
-	my $option_mask |= 1;
-	$option_mask |= $PSTAMP_SELECT_IMAGE;
-	$option_mask |= $PSTAMP_SELECT_MASK;
-	$option_mask |= $PSTAMP_SELECT_VARIANCE;
-	$option_mask |= $PSTAMP_SELECT_PSF;
+#	my $option_mask |= 1;
+#	$option_mask |= $PSTAMP_SELECT_IMAGE;
+#	$option_mask |= $PSTAMP_SELECT_MASK;
+#	$option_mask |= $PSTAMP_SELECT_VARIANCE;
+#	$option_mask |= $PSTAMP_SELECT_PSF;
 
         # magic is dead
Index: /tags/ipp-ps2-20190404/pstamp/scripts/pstamp_server_status
===================================================================
--- /tags/ipp-ps2-20190404/pstamp/scripts/pstamp_server_status	(revision 40768)
+++ /tags/ipp-ps2-20190404/pstamp/scripts/pstamp_server_status	(revision 40769)
@@ -39,5 +39,8 @@
 # isn't necessary if the pstamp/web stuff is configured to point at the 
 # ipp build. But currently it's running out of Bill's build
-my $ipphome = "/home/panstarrs/ipp";
+
+# EAM 2017.03.08 : need to point at temporary ITC location:
+# my $ipphome = "/home/panstarrs/ipp";
+my $ipphome = "/data/ippc64.1/ippitc";
 my $status_cmd = "psstatus";
 
@@ -46,5 +49,5 @@
 chdir $rundir or die "failed to cd to $rundir";
 
-
+# print "pantasks_client: $pantasks_client\n";
 
 my $now = `date -u`;
