changed API for getFilterOptions()