Index: branches/eam_branches/ipp-20140402/ippconfig/gpc1/ppStack.config
===================================================================
--- branches/eam_branches/ipp-20140402/ippconfig/gpc1/ppStack.config	(revision 36644)
+++ branches/eam_branches/ipp-20140402/ippconfig/gpc1/ppStack.config	(revision 36677)
@@ -167,4 +167,10 @@
     PSF.TARGET.AS.MAX  BOOL  TRUE
     PSF.TARGET.AS.MAX.EPSILON F32 0.1
+    THRESHOLD.MASK  F32     0.01             # Threshold for mask deconvolution (0..1)
+    COMBINE.ITER    F32     0.5             # Number of rejection iterations per input
+    COMBINE.REJ     F32     2.5             # Rejection threshold in combination (sigma)
+    COMBINE.SYS     F32     0.1             # Relative systematic error in combination
+    COMBINE.DISCARD F32     0.2             # Discard fraction for Olympic weighted mean
+    IMAGE.REJ       F32     0.1             # Rejected pixel fraction threshold for rejecting entire image
 END
 
@@ -183,4 +189,32 @@
     PSF.TARGET.AS.MAX  BOOL  TRUE
     PSF.TARGET.AS.MAX.EPSILON F32 0.1
+    THRESHOLD.MASK  F32     0.5             # Threshold for mask deconvolution (0..1)
+    COMBINE.ITER    F32     0.5             # Number of rejection iterations per input
+    COMBINE.REJ     F32     3.5             # Rejection threshold in combination (sigma)
+    COMBINE.SYS     F32     0.1             # Relative systematic error in combination
+    COMBINE.DISCARD F32     0.2             # Discard fraction for Olympic weighted mean
+    IMAGE.REJ       F32     0.1             # Rejected pixel fraction threshold for rejecting entire image
+END
+
+STACK_MDTHREEPI_DEEP_1DG     METADATA   ## revised config for MD+3PI 
+    OUTPUT.NOCOMP           BOOL  TRUE
+    OUTPUT.LOGFLUX          BOOL  FALSE
+    OUTPUT.REPLICATE        BOOL  TRUE
+    STACK.TYPE              STR   DEEP_STACK
+    PSF.INPUT.CLIP.SIMPLE   BOOL  True
+    PSF.INPUT.MAX           F32   10.0    #
+    PSF.INPUT.CLIP.NSIGMA   F32   100.0
+    PSF.INPUT.THRESH        F32   NAN
+    PSF.INPUT.ASYMMETRY     F32   NAN
+    MATCH.REJ               F32   4.0     # need ot tune?
+    SAFE                    BOOL  FALSE
+    PSF.TARGET.AS.MAX  BOOL  TRUE
+    PSF.TARGET.AS.MAX.EPSILON F32 0.1
+    THRESHOLD.MASK  F32     0.01             # Threshold for mask deconvolution (0..1)
+    COMBINE.ITER    F32     0.5             # Number of rejection iterations per input
+    COMBINE.REJ     F32     2.5             # Rejection threshold in combination (sigma)
+    COMBINE.SYS     F32     0.1             # Relative systematic error in combination
+    COMBINE.DISCARD F32     0.2             # Discard fraction for Olympic weighted mean
+    IMAGE.REJ       F32     0.1             # Rejected pixel fraction threshold for rejecting entire image
 END
 
Index: branches/eam_branches/ipp-20140402/ippconfig/recipes/nightly_science.config
===================================================================
--- branches/eam_branches/ipp-20140402/ippconfig/recipes/nightly_science.config	(revision 36644)
+++ branches/eam_branches/ipp-20140402/ippconfig/recipes/nightly_science.config	(revision 36677)
@@ -3,5 +3,5 @@
   MODE           STR CHIP
   COMMAND        STR chiptool -dbname @DBNAME@ -updaterun -set_state goto_cleaned -state full -set_label goto_cleaned -label @LABEL@ -data_group @DATA_GROUP@
-  RETENTION_TIME U16 7
+  RETENTION_TIME U16 5 
 END
 CLEAN_MODES METADATA
@@ -9,10 +9,10 @@
   COMMAND        STR warptool -dbname @DBNAME@ -updaterun -set_state goto_cleaned -state full -set_label goto_cleaned -label @LABEL@ -data_group @DATA_GROUP@
 #  COMMAND        STR true
-  RETENTION_TIME U16 7
+  RETENTION_TIME U16 5
 END
 CLEAN_MODES METADATA
   MODE           STR DIFF
   COMMAND        STR difftool -dbname @DBNAME@ -updaterun -set_state goto_cleaned -state full -set_label goto_cleaned -label @LABEL@ -data_group @DATA_GROUP@
-  RETENTION_TIME S16 7
+  RETENTION_TIME S16 5
 END
 CLEAN_MODES METADATA
Index: branches/eam_branches/ipp-20140402/ippconfig/recipes/ppStack.config
===================================================================
--- branches/eam_branches/ipp-20140402/ippconfig/recipes/ppStack.config	(revision 36644)
+++ branches/eam_branches/ipp-20140402/ippconfig/recipes/ppStack.config	(revision 36677)
@@ -189,4 +189,7 @@
 END
 
+STACK_MDTHREEPI_DEEP_1DG   METADATA
+END
+
 
 
Index: branches/eam_branches/ipp-20140402/ippconfig/recipes/psphot.config
===================================================================
--- branches/eam_branches/ipp-20140402/ippconfig/recipes/psphot.config	(revision 36644)
+++ branches/eam_branches/ipp-20140402/ippconfig/recipes/psphot.config	(revision 36677)
@@ -491,5 +491,5 @@
   PEAKS_NMAX_TOTAL                    S32   0 # set this to limit the allowed number of peaks - Yields fault instead of avoid memory explosion
 
-  EXT_MODEL_TYPE_FOR_CFF              STR   PS_MODEL_DEV
+#  EXT_MODEL_TYPE_FOR_CFF              STR   PS_MODEL_DEV
 
   SAVE.RESID                          BOOL  TRUE
Index: branches/eam_branches/ipp-20140402/ippconfig/recipes/reductionClasses.mdc
===================================================================
--- branches/eam_branches/ipp-20140402/ippconfig/recipes/reductionClasses.mdc	(revision 36644)
+++ branches/eam_branches/ipp-20140402/ippconfig/recipes/reductionClasses.mdc	(revision 36677)
@@ -663,4 +663,15 @@
       STACKPHOT_SINGLE_PSPHOT STR     STACKPHOT_SINGLE
       STATICSKY_CALIBRATION   STR     STATICSKY_DEEPCAL 
+END
+
+MDTHREEPI_DEEP_STACK_1DG            METADATA
+      STACK_PPSTACK           STR     STACK_MDTHREEPI_DEEP_1DG
+      STACK_PPSUB             STR     STACK_1DG
+      STACK_PSPHOT            STR     STACK
+      STACKPHOT_PSPHOT        STR     STACKPHOT
+      STACKPHOT_PPSUB         STR     STACKPHOT_1DG
+      STACKPHOT_PPSTACK       STR     STACKPHOT
+      STACKPHOT_SINGLE_PSPHOT STR     STACKPHOT_SINGLE
+      STATICSKY_CALIBRATION   STR     STATICSKY_DEEPCAL
 END
 
