extract base_uri from gem