p_patch_planner