separate messages from data