add exit code printing
Merge branch 'diverge'