Index: /branches/eam_branches/ipp-20130904/psphot/src/psphotExtendedSourceFits.c
===================================================================
--- /branches/eam_branches/ipp-20130904/psphot/src/psphotExtendedSourceFits.c	(revision 36329)
+++ /branches/eam_branches/ipp-20130904/psphot/src/psphotExtendedSourceFits.c	(revision 36330)
@@ -682,4 +682,5 @@
 	    pmSourceCacheModel (source, maskVal);
 	}
+        source->modelEXT->flags |= PM_MODEL_BEST_FIT;
 
         // subtract the best fit from the object, leave local sky
Index: /branches/eam_branches/ipp-20130904/psphot/src/psphotReadout.c
===================================================================
--- /branches/eam_branches/ipp-20130904/psphot/src/psphotReadout.c	(revision 36329)
+++ /branches/eam_branches/ipp-20130904/psphot/src/psphotReadout.c	(revision 36330)
@@ -316,4 +316,11 @@
     psphotSourceSize (config, view, filerule, false); // pass 2 (detections->allSources)
 
+    // XXX currently we are doing both the analysis of the size and the assessment of "fit ext"
+    // in source size.  this overloads the bit MODE_EXT_LIMIT to mean "fit ext" not just
+    // "bigger than a PSF"
+
+    // decide which source(s) are to be fitted with the extended source analysis code.
+    // XXX finish this: psphotChooseAnalysisOptions (config, view, filerule, false);
+
     psphotExtendedSourceAnalysis (config, view, filerule); // pass 1 (detections->allSources)
     psphotExtendedSourceFits (config, view, filerule); // pass 1 (detections->allSources)
Index: /branches/eam_branches/ipp-20130904/psphot/src/psphotSourceFits.c
===================================================================
--- /branches/eam_branches/ipp-20130904/psphot/src/psphotSourceFits.c	(revision 36329)
+++ /branches/eam_branches/ipp-20130904/psphot/src/psphotSourceFits.c	(revision 36330)
@@ -1055,4 +1055,6 @@
     PAR[PM_PAR_7] = Smin;
 
+    // XXX I could set the error on PAR_7 here if I knew how to roughly convert these chisq values to true chisq values
+
     // return to the original fitting mode (fitOptions)
     pmPCMupdate(pcm, source, fitOptions, model);
