add exit codes for failures