added base url retrieval