add renaming to the API