adds fields to optioninfo class