more improvements
temporary changed to transactions().create(branch) syntax since transactions().create().for(branch) doesn't work