added support for setting search options