Index: branches/eam_branches/ipp-pstamp-20260421/ippTasks/simtest.pro
===================================================================
--- branches/eam_branches/ipp-pstamp-20260421/ippTasks/simtest.pro	(revision 43085)
+++ branches/eam_branches/ipp-pstamp-20260421/ippTasks/simtest.pro	(revision 43104)
@@ -79,8 +79,33 @@
       # the labels "wait" and "proc" are special names used in automate.pro
     
+      # confirm the TESS, DVO, and refcat.catdir entries in site.config match the local names
+      $myTess   = `ipp_site_lookup.pl --tess_id TESS`
+      $myRefcat = `ipp_site_lookup.pl --psastro_db SYNTH.SIMTEST`
+
+      pwd -var myCWD 
+      strsub $myCWD /export /data -var myCWD
+
+      if ("$myTess" != "$myCWD/TESS")
+        echo "site.config does not list the correct TESS entry: $myTess vs $myCWD/TESS"
+	break
+      end
+      if ("$myRefcat" != "$myCWD/refcat.catdir")
+        echo "site.config does not list the correct TESS entry: $myTess vs $myCWD/TESS"
+	break
+      end
+
       # make a reference database using refcat.fits
       # EAM XXX : 2026.06.29 : this command has a hard-wired RA,DEC region which
       # needs to match the object images generated by the SIMTEST_SEQUENCE file 
       mkref refcat 10
+
+      ## XXX this will need to be optional as well 
+      ## we could use the book to find OBSTYPE = OBJECT, get CENTER.RA, CENTER.DEC 
+      ## or else we could have ppSimSequence generate an appropriate skycells call
+      file TESS/Images.dat found
+      if ($found == 0)
+        # this command is approriate only to the dither pattern and camera define in simtest.basic.config
+        exec skycells -mode local -scale 0.2 -center $CENTER_RA $CENTER_DEC -size 0.3 0.3 -nx 3 -ny 3 -D CATDIR TESS
+      end
 
       local mySeq
@@ -106,13 +131,4 @@
 
       exec source simtest.mkimages
-
-      ## XXX this will need to be optional as well 
-      ## we could use the book to find OBSTYPE = OBJECT, get CENTER.RA, CENTER.DEC 
-      ## or else we could have ppSimSequence generate an appropriate skycells call
-      file TESS/Images.dat found
-      if ($found == 0)
-        # this command is approriate only to the dither pattern and camera define in simtest.basic.config
-        exec skycells -mode local -scale 0.2 -center $CENTER_RA $CENTER_DEC -size 0.3 0.3 -nx 3 -ny 3 -D CATDIR TESS
-      end
     end
 
@@ -132,14 +148,10 @@
     module detrend.reject.pro
     module detrend.correct.pro
-#   module flatcorr.pro
     module chip.pro
     module camera.pro
-#   module addstar.pro
     module fake.pro
     module warp.pro
     module diff.pro
     module stack.pro
-  else
-    module.tasks
   end
 
@@ -160,8 +172,6 @@
     register.revert.off
     detrend.revert.off
-  # flatcorr.revert.off
     chip.revert.off
     camera.revert.off
-  # addstar.revert.off
     fake.revert.off
     warp.revert.off
