add hosts objet for host class