swap names for TaskClass and TaskState