Index: trunk/pstamp/scripts/pstamp_checkdependent.pl
===================================================================
--- trunk/pstamp/scripts/pstamp_checkdependent.pl	(revision 28583)
+++ trunk/pstamp/scripts/pstamp_checkdependent.pl	(revision 28628)
@@ -277,5 +277,4 @@
     # if chipProcessedImfile.state is cleaned call check_states_chip
 
-    # need to code warptool -setskyfiletoupdate
     my $metadata = shift;
     my $whole_run = shift;  # if true queue entire run for update
@@ -287,5 +286,5 @@
     my $warp_id = $metadata->{warp_id};
     my $state = $metadata->{state};
-    if ($state =~ /error/) {
+    if (($state =~ /error/) or ($state =~ /purged/) or ($state =~ /scrubbed/) or ($state eq 'drop')) {
         print STDERR "warpRun $warp_id has state $state faulting jobs\n";
         faultJobs('stop', undef, undef, $PSTAMP_GONE);
Index: trunk/pstamp/scripts/pstamp_job_run.pl
===================================================================
--- trunk/pstamp/scripts/pstamp_job_run.pl	(revision 28583)
+++ trunk/pstamp/scripts/pstamp_job_run.pl	(revision 28628)
@@ -92,11 +92,18 @@
     my_die("argument list is empty", $job_id, $PS_EXIT_DATA_ERROR) if !$argString;
 
-    # XXX: remove -astrom from argString and add it here
-
     $argString .= " -file $params->{image}";
     $argString .= " -mask $params->{mask}";
+    my @file_list = ($params->{image}, $params->{mask});
     if ($options & $PSTAMP_SELECT_VARIANCE) {
         $argString .= " -variance $params->{weight}";
-    }
+        push @file_list, $params->{weight};
+    }
+
+    if ($params->{astrom}) {
+        $argString .= " -astrom $params->{astrom}";
+        push @file_list, $params->{astrom};
+    }
+
+    check_files(@file_list);
 
     my $command = "$ppstamp $outputBase $argString";
@@ -341,4 +348,12 @@
 }
 
+sub check_files {
+    foreach my $f (@_) {
+        if (!$ipprc->file_exists($f)) {
+            my_die( "file $f does not exist:", $job_id, $PS_EXIT_SYS_ERROR);
+        }
+    }
+}
+
 sub my_die
 {
Index: trunk/pstamp/scripts/pstampparse.pl
===================================================================
--- trunk/pstamp/scripts/pstampparse.pl	(revision 28583)
+++ trunk/pstamp/scripts/pstampparse.pl	(revision 28628)
@@ -500,8 +500,10 @@
     }
 
+if (0) {
     # add astrometry file for raw and chip images if one is available
     if (($stage eq "chip") || ($stage eq "raw")) {
         $args .= " -astrom $image->{astrom}" if $image->{astrom};
     }
+}
 
     $image->{job_args} = $args;
