updated scripting in mixpanel