refactoring: readabilty of exit code