integrating with ES