updated scaffold script