make get_latest_task into thunk, label arguments