partitioned task-listener as its own class.