move messages to header