shouldn't we set @hostgroup.parent = @parent ?