retrieve base url from variables