add guid to attachments.