modified ? : statements to use the getOptionValue(opt, defaultValue) method instead