updated to new Attachment API in dparval