added a framework to get host information only for the specified IDs.