built the groundwork to convert the Script statements to operate on Vars, as opposed to primitive types