append optionObj and groupObj