added in branching on last command's exit status