base url algoritm changed