added use of TaskManager