implemented hostgroups