updated script to fetch elastic5