avoiding GetOptionsFromArray