caching HostAddress.
adding comment.
new APIs.
refactoring.