abstracting base url