modify Attachment API, remove File API dependency