added mixpanel stuff