adds method for grouping messages into conversations