pull request for limiting upstream tries