improvement for renaming linked attachments