auto commit from script