update file, rename file