simplified handling of search params