allow arbitrary options to be passed to search function