calling planner to build execution plans