avoid memory leaks by limiting history to 100 messages