add exit code when success