Index: /trunk/ppImage/src/ppImageAstrom.c
===================================================================
--- /trunk/ppImage/src/ppImageAstrom.c	(revision 15136)
+++ /trunk/ppImage/src/ppImageAstrom.c	(revision 15137)
@@ -19,7 +19,4 @@
     PS_ASSERT (input, false);
 
-    // deactivate the psastro files, reactive when needed
-    // XXX ??? pmFPAfileActivate (config->files, true, "PSASTRO.OUTPUT");
-
     // convert the output sources created by psphot into astrometry objects
     if (!psastroConvertFPA (input->fpa, recipe)) {
@@ -33,4 +30,31 @@
     }
 
+    // deactivate the psastro files, reactive when needed
+    pmFPAfileActivate (config->files, false, NULL);
+    pmFPAfileActivate (config->files, true, "PSASTRO.OUTPUT");
+
+    // loop over all chips and perform IO needed
+    pmFPAview *view = pmFPAviewAlloc(0);// View for level of interest
+    while ((chip = pmFPAviewNextChip(view, input->fpa, 1)) != NULL) {
+        psLogMsg ("ppImageLoop", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
+
+        // Output and Close at Chip level
+        if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) {
+            psFree(view);
+            return false;
+        }
+    }
+
+    // Output and Close FPA
+    if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) {
+        psFree(view);
+        return false;
+    }
+
+    // deactivate the PSASTRO files, re-active all else 
+    // XXX do we need a way to activate / deactivate other groups?
+    pmFPAfileActivate (config->files, true, NULL);
+    pmFPAfileActivate (config->files, false, "PSASTRO.OUTPUT");
+
     return true;
 }
Index: /trunk/ppImage/src/ppImageLoop.c
===================================================================
--- /trunk/ppImage/src/ppImageLoop.c	(revision 15136)
+++ /trunk/ppImage/src/ppImageLoop.c	(revision 15137)
@@ -144,4 +144,5 @@
 
     // we perform astrometry on all chips after sources have been detected
+    // this also performs the psastro file IO
     if (options->doAstromChip || options->doAstromMosaic) {
         if (!ppImageAstrom(config)) {
@@ -163,5 +164,4 @@
     }
 
-
     // Write out summary statistics
     if (!ppImageStatsOutput (config, options)) {
Index: /trunk/ppImage/src/ppImageParseCamera.c
===================================================================
--- /trunk/ppImage/src/ppImageParseCamera.c	(revision 15136)
+++ /trunk/ppImage/src/ppImageParseCamera.c	(revision 15137)
@@ -272,5 +272,5 @@
 
 	// deactivate the psastro files, reactive when needed
-	// XXX ??? pmFPAfileActivate (config->files, false, "PSASTRO.OUTPUT");
+	pmFPAfileActivate (config->files, false, "PSASTRO.OUTPUT");
     }
 
Index: /trunk/psconfig/psconfig.bash
===================================================================
--- /trunk/psconfig/psconfig.bash	(revision 15136)
+++ /trunk/psconfig/psconfig.bash	(revision 15137)
@@ -2,5 +2,5 @@
 
 if [ -z $PSCONFIG_DIR ]; then
-  PSCONFIG_DIR=/home/kiawe/eugene/src.alala/panstarrs/ipp/psconfig
+  PSCONFIG_DIR=/home/eugene/src/panstarrs/ipp/psconfig
 fi
 
