cleaned up task_controller