handle searchoptions