add case classes for messages