infrastructure for sending events to max