add root_url to api call