update to give dynamic base-url, so we can now use after stopping and starting an instance.