use echo to get base url