use new class TaskIdTree instead of TaskTree