sync plugin-new code with project-creator.