adds ThreadPool and ability to export search results as csv file