Index: trunk/psphot/src/psphotReadoutMinimal.c
===================================================================
--- trunk/psphot/src/psphotReadoutMinimal.c	(revision 34215)
+++ trunk/psphot/src/psphotReadoutMinimal.c	(revision 34258)
@@ -25,4 +25,16 @@
     // Generate the mask and weight images, including the user-defined analysis region of interest
     psphotSetMaskAndVariance (config, view, filerule);
+
+    // only subtract background if needed?
+    // activate this for a clean test with psphotMinimal. (add to recipe!)
+    if (0) {
+      // generate a background model (median, smoothed image)
+      if (!psphotModelBackground (config, view, filerule)) {
+        return psphotReadoutCleanup (config, view, filerule);
+      }
+      if (!psphotSubtractBackground (config, view, filerule)) {
+        return psphotReadoutCleanup (config, view, filerule);
+      }
+    }
 
     // load the psf model, if suppled.  FWHM_X,FWHM_Y,etc are saved on readout->analysis
@@ -72,13 +84,18 @@
     psphotFitSourcesLinear (config, view, filerule, false, false);
 
-// XXX eventually, add the extended source fits here
-# if (0)
+    // measure the radial profiles to the sky
+    psphotRadialProfileWings (config, view, filerule);
+
+    // re-measure the kron mags with models subtracted and more appropriate windows
+    psphotKronIterate(config, view, filerule);
+
     // measure source size for the remaining sources
-    psphotSourceSize (config, view, filerule);
+    psphotSourceSize (config, view, filerule, false);
 
-    psphotExtendedSourceAnalysis (config, view, filerule);
+    // NOTE: Petrosian and Isophotal mags are not relevant at this time
+    // psphotExtendedSourceAnalysis (config, view, filerule);
 
+    // in ppSub context, this is used to fit TRAILs (and maybe EXP for comets)
     psphotExtendedSourceFits (config, view, filerule);
-# endif
 
     // calculate source magnitudes
