octascript: keep track of all variables correctly