attempting to capture exit codes for various scripts