added script and templates