updated script to fetch elastic