add categories to messages