do not commit until the whole script runs ok