swapping base url