taking kinetic out of embedded scripts