added get_local_task_state() and a TODO for set_task_state()