added an 'unread' flag to CustomMessage