api call inside of mixpanel wait callback