Using the internal rename package is not a very good idea (discouraged access warning). There is an official documentation on that topic. A stackoverflow exchange also mentions interesting informations.