add script and template