removing check if method setHost exists because master branch requires 2.3