renamed: message -> output, msgBuf -> message