parsing of attachments