auto-add to doc