update plan.py for shrink kernel