refactor hostinfo service