add metaData to messages