handle options in optionSet