added parsing and uploading attachments to amazon aws