add transaction around root creation