get advanced search working again