refact base url