get task object