debugging attachments