add the rename function in the extractfile