use api to pull tasks from server