Index: trunk/psphot/src/psphot.c
===================================================================
--- trunk/psphot/src/psphot.c	(revision 4216)
+++ trunk/psphot/src/psphot.c	(revision 4251)
@@ -10,6 +10,4 @@
     psStats     *sky     = NULL;
 
-    psLogArguments (&argc, argv);
-    psTraceArguments (&argc, argv);
     config = load_args (&argc, argv);
 
@@ -31,13 +29,8 @@
 
     // use stellar objects SN > PSF_SN_LIM
-    psf = choose_psf_model (imdata, config, sources);
+    psf = choose_psf_model (config, sources);
 
-    if (0) { 
-      psImage *zap = psImageAlloc (imdata->image->numCols, imdata->image->numRows, PS_TYPE_F32);
-      psImageInit (zap, 0);
-      find_defects (zap, sources, config, psf);
-      DumpImage (zap, argv[2]);
-      exit (0);
-    }
+    // identify defects based on 1-pixel wide x and y direction 2nd moments
+    find_defects (zap, sources, config, psf);
 
     // test PSF on all except SATURATE and DEFECT (artifacts)
