added pointer for hostgroup in service