improved error handling
ignore empty query params in search api