this is the only line that i think is really sketchy, since it will both remove anything referencing _attachments from all existing exports, and doesn't have the same "niceness" of the "clean" pattern in the rest of this.