add hostgroups feature