updated script to fetch elastic6