added ability to fetch tasks