Allow using ESURL env variable to specify ES location
use fromMaybe instead of a case