script templates fixed