ensuring es is enabled