frame messages when writing
segment writer generates message uuid