add exit code on fail