add stage.js for planner