refactor PlanningManager and update planning for LXC