updated builder to check config for base_url