Index: trunk/ippTools/src/stacktool.c
===================================================================
--- trunk/ippTools/src/stacktool.c	(revision 18574)
+++ trunk/ippTools/src/stacktool.c	(revision 18578)
@@ -272,5 +272,5 @@
 
         // create a new stackRun for this stack
-        stackRunRow *run = stackRunRowAlloc(0, "run", workdir, NULL, registered, skycell_id, tess_id);
+        stackRunRow *run = stackRunRowAlloc(0, "run", workdir, NULL, registered, skycell_id, tess_id, filter);
         if (!stackRunInsertObject(config->dbh, run)) {
             if (!psDBRollback(config->dbh)) {
@@ -343,4 +343,5 @@
     PXOPT_LOOKUP_STR(skycell_id, config->args, "-skycell_id", true, false);
     PXOPT_LOOKUP_STR(tess_id, config->args, "-tess_id", true, false);
+    PXOPT_LOOKUP_STR(filter, config->args, "-filter", true, false);
 
     // default
@@ -356,13 +357,5 @@
     }
 
-    stackRunRow *run = stackRunRowAlloc(
-            0,          // ID
-            "run",      // state
-            workdir,
-            NULL,       // dvodb
-            registered,
-            skycell_id,
-            tess_id
-    );
+    stackRunRow *run = stackRunRowAlloc(0, "run", workdir, NULL, registered, skycell_id, tess_id, filter);
     if (!run) {
         psError(PS_ERR_UNKNOWN, false, "failed to alloc stackRun object");
