fix job status reporting bug and poor output handling