add template and script