preliminary setup for advanced search