extract out task manager