functional scripts for controls.