Index: /trunk/ippTools/src/chiptoolConfig.c
===================================================================
--- /trunk/ippTools/src/chiptoolConfig.c	(revision 6121)
+++ /trunk/ippTools/src/chiptoolConfig.c	(revision 6122)
@@ -7,15 +7,11 @@
     // Parse the configurations (re-org a la ppImage)
     config->site = NULL;            // Site configuration
-    config->camera = NULL;          // Camera configuration
+    config->camera = NULL;          // Camera configuration (unused)
     config->recipe = NULL;          // Recipe configuration
+    config->camera_name = NULL;     // Camera name
+
     if (! pmConfigRead(&config->site, &config->camera, &config->recipe, &argc, argv, RECIPE)) {
         psErrorStackPrint(stderr, "Can't find site configuration!\n");
         exit(EXIT_FAILURE);
-    }
-
-    bool status;
-    config->camera_name = psMetadataLookupStr(&status, config->camera, "name");
-    if (!config->camera_name) {
-        // die
     }
 
@@ -63,5 +59,5 @@
         config->mode = P2_MODE_UPDATE;
     }
-
+    
     // paul's argument parsing convention requires: -key value 
     psMetadataAddBool(config->arguments, PS_LIST_TAIL, "-quick",   0, "examine raw image table, write ppImage output", false);
@@ -70,5 +66,5 @@
     psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-update",  0, "update pending image table", "");
     psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-time",    0, "define time range of interest", "");
-    psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-camera",  0, "define camera of interest", "");
+    psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-inst",  0, "define camera of interest", "");
     psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-filter",  0, "define filter of interest", "");
 
@@ -89,4 +85,7 @@
     }
 
+    bool status;
+    config->camera_name = psMetadataLookupStr(&status, config->arguments,
+        "-inst");
     // add the input and output images to the arguments list
     //psMetadataAddStr (config->arguments, PS_LIST_TAIL, "-output", 0, "Name of the output image", argv[1]);
Index: /trunk/ippTools/src/p2searchRawFrames.c
===================================================================
--- /trunk/ippTools/src/p2searchRawFrames.c	(revision 6121)
+++ /trunk/ippTools/src/p2searchRawFrames.c	(revision 6122)
@@ -9,9 +9,11 @@
 //    psMetadataAddS32  (where, PS_LIST_TAIL, "TYPE",  0, "==", P2_TYPE_OBJECT);
 
-    if (config->camera != NULL) {
-        psMetadataAddStr(where, PS_LIST_TAIL, "camera", 0, "==", config->camera_name);
+    if (config->camera_name != NULL) {
+        psMetadataAddStr(where, PS_LIST_TAIL, "camera", 0, "==",
+            config->camera_name);
     }
     if (config->filter != NULL) {
-        psMetadataAddStr(where, PS_LIST_TAIL, "filter", 0, "==", config->filter);
+        psMetadataAddStr(where, PS_LIST_TAIL, "filter", 0, "==",
+            config->filter);
     }
     // psMetadataConfig does not support times yet
@@ -27,5 +29,5 @@
     psFree (where);
     if (!exposures) {
-        psError(PS_ERR_UNKNOWN, false, "database access failed");
+        psError(PS_ERR_UNKNOWN, false, "no rawScienceExp rows found");
 
         return NULL;
