adds scripting for text