forgot to initialize local copy of exit code