adding saveAttachment and removeAttachment implementations