eliminate template scripting and scriptmode