wrap scripts in an implicit transaction