properly parse options.multiple