get upstream host from link instead of environment