add hostgroup gen