renaming dir, too.