added global task ID check