wrap some commits into transaction, closed #10