task manager implementation