Template scripts

re #242