update scripts, add generate variables