added task manager to handle task decomposition