add OTF support for attachments