Index: trunk/psastro/src/psastro.c
===================================================================
--- trunk/psastro/src/psastro.c	(revision 7154)
+++ trunk/psastro/src/psastro.c	(revision 7332)
@@ -26,23 +26,15 @@
     psArray *refs = psastroLoadReferences (config);
 
-    psastroChipAstrom (config, refs);
-    psastroMosaicAstrom (config, refs);
+    psastroMosaicGetRefstars (config, refs); 
 
-    # if 0
-    // perform the desired astrometry analysis
-    switch (mode) {
-      case stack:
-	psastroStackAstrom (config, refs);
-	break
-      case chip:
+    char *mosastro = psMetadataLookupStr (NULL, config->arguments, "MOSASTRO");
+    if (mosastro == NULL) {
 	psastroChipAstrom (config, refs);
-	break
-      case mosaic:
+    } else {
 	psastroMosaicAstrom (config, refs);
-	break;
-      default:
-	break;
     }
-    # endif
+
+    // XXX how do we specify stack astrometry?
+    // psastroStackAstrom (config, refs);
 
     // write out the results
@@ -60,6 +52,6 @@
     pmConceptsDone ();
     pmConfigDone ();
-    fprintf (stderr, "found %d leaks at %s\n", psMemCheckLeaks (0, NULL, stdout, false), "psastro");
-    // fprintf (stderr, "found %d leaks at %s\n", psMemCheckLeaks (0, NULL, NULL, false), "psastro");
+    // fprintf (stderr, "found %d leaks at %s\n", psMemCheckLeaks (0, NULL, stdout, false), "psastro");
+    fprintf (stderr, "found %d leaks at %s\n", psMemCheckLeaks (0, NULL, NULL, false), "psastro");
 
     exit (0);
