improve search, log to stdout not stderr