don't store variable value in scripts only

this was causing lots of duplicate rows.