switched analytics to esper implementation