no longer use deprecated method in http client