refactor base_uri