add delegate class for TaskSpec