adapts messages to new layout