revamped structure for task planning