Index: trunk/psphot/src/psphotImageLoop.c
===================================================================
--- trunk/psphot/src/psphotImageLoop.c	(revision 7345)
+++ trunk/psphot/src/psphotImageLoop.c	(revision 7582)
@@ -18,5 +18,5 @@
     
     // files associated with the science image
-    if (!pmFPAfileIOChecks (config->files, view, PM_FPA_BEFORE)) {
+    if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) {
 	psFree(view);
 	return false;
@@ -25,14 +25,14 @@
         psLogMsg ("psphot", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
         if (! chip->process || ! chip->file_exists) { continue; }
-	pmFPAfileIOChecks (config->files, view, PM_FPA_BEFORE);
+	pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
 
 	while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) {
             psLogMsg ("psphot", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);
             if (! cell->process || ! cell->file_exists) { continue; }
-	    pmFPAfileIOChecks (config->files, view, PM_FPA_BEFORE);
+	    pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
 
 	    // process each of the readouts
 	    while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) {
-		pmFPAfileIOChecks (config->files, view, PM_FPA_BEFORE);
+		pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
 		if (! readout->data_exists) { continue; }
 
@@ -40,11 +40,11 @@
 		psphotReadout (config, view);
 
-		pmFPAfileIOChecks (config->files, view, PM_FPA_AFTER);
+		pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
 	    }
-	    pmFPAfileIOChecks (config->files, view, PM_FPA_AFTER);
+	    pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
 	}
-	pmFPAfileIOChecks (config->files, view, PM_FPA_AFTER);
+	pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
     }
-    pmFPAfileIOChecks (config->files, view, PM_FPA_AFTER);
+    pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
 
     psFree (view);
