updated script to fetch elastic4