refactored deprecated host to hostname