updated TaskManager

bug fixes