fixing upstream_scheme