the doc isn't emitted so the id (and id cleanup) is still necessary