rename hook: run once per file to be renamed