generating optgroups is working again