add script editor and refine