add event for flow stats