encompassed functions within Mixpanel class