add exit code fixes #1