adding some handling for non-0 exit codes, but still need to pull the actual code