modify plan and add score api