added a start transaction switch and functionality