add support to stream attachments