remove template and script