refactor base_uri as mostly redundant