compile messages for each terminal