add messages to header