update to work with new elasticsearch driver