add max message event for flood protection