added template option to ES configuration