extracted script-local variable to an option