first argument for search() is now an options-like object, for #1