scripting control refinement