use of plugin optionSpec