updated script to fetch elastic3