added generate_group_id to Task base class