make it possible to pass simple dicts as search options