update plan and script