finished transaction helper and mostly done with warehouse.h