updated template and install scripts