add default value for base_url, and make it optional