Index: trunk/doc/release.2015/ps1.calibration/calibration.tex
===================================================================
--- trunk/doc/release.2015/ps1.calibration/calibration.tex	(revision 41176)
+++ trunk/doc/release.2015/ps1.calibration/calibration.tex	(revision 41177)
@@ -1970,4 +1970,5 @@
 
 \subsection{Systematic Effects}
+\label{sec:astrometry.systematic}
 
 First, the astrometric calibration has a larger number of systematic
Index: trunk/ippToPsps/jython/stackbatch.py
===================================================================
--- trunk/ippToPsps/jython/stackbatch.py	(revision 41176)
+++ trunk/ippToPsps/jython/stackbatch.py	(revision 41177)
@@ -422,5 +422,9 @@
             sqlLine.group("a.dvoRegionID",             "b.catID")                       # this is not filter dependent, but is re-written for each filter (if data exists)
             sqlLine.group("a.primaryDetection",        "((b.flags & 0x10000) >> 16)")   # this is not filter dependent, but is re-written for each filter (if data exists)
+            ### XXX : primaryDetection is wrong: it should have calculated if (b.flags & 0x10000) was set for all filters
+            ### b.flags is the filter-dependent STACK_PRIMARY bit -- thus only true if the y-band is primary
+
             sqlLine.group("a.bestDetection",           "((b.objflags & 0x8000) >> 15)") # this is not filter dependent, but is re-written for each filter (if data exists)
+            ### XXX : bestDetection grabs the wrong bit.  It should have been (b.filtflags & 0x8000) or (b.objflags  & 0x10000000)
 
             sqlLine.group("a."+filter+"haveData",      "'1'")
Index: trunk/ippconfig/recipes/ppSim.config
===================================================================
--- trunk/ippconfig/recipes/ppSim.config	(revision 41176)
+++ trunk/ippconfig/recipes/ppSim.config	(revision 41177)
@@ -54,4 +54,10 @@
 STARS.DENSITY	F32    100.0		# Stellar density (per square degree) at the brightest magnitude
 STARS.SIGMA.LIM F32      1.0            # significance of faintest sources
+
+STARS.CLUSTER         BOOL    F         # do not insert a cluster by default
+STARS.CLUSTER.DENSITY F32 10000         # central density (per square degree)
+STARS.CLUSTER.SIGMA   F32    30         # cluster spatial scale (pixels)
+STARS.CLUSTER.XCENTER F32  500         # center of cluster
+STARS.CLUSTER.YCENTER F32  500         # center of cluster
 
 STARS.FLAT.LUM  BOOL    FALSE           # use a (non-physical) constant number of stars per mag bin?
Index: trunk/psconfig/psbuild
===================================================================
--- trunk/psconfig/psbuild	(revision 41176)
+++ trunk/psconfig/psbuild	(revision 41177)
@@ -186,5 +186,5 @@
     # print "psconfigure: $psconfigure\n";
     # print "psautogen:   $psautogen\n";
-    # print "psperlbuild: $psperlbuild\n";
+    print "psperlbuild: $psperlbuild\n";
 
     # set build environment variables
@@ -253,5 +253,5 @@
     # print "psconfigure: $psconfigure\n";
     # print "psautogen:   $psautogen\n";
-    # print "psperlbuild: $psperlbuild\n";
+    print "psperlbuild: $psperlbuild\n";
 
     # set build environment variables
