public, exitCode logic