document messages; split with regexps