split getOption to requireOption and getOptionValue
fixed config preprocessing