setting exit codes during failed executions
function not large enough