added configurable version of es