clean up scripts blocks