update script generator of post