updated run script for elasticsearch