hacking our way around nested transactions. need to revisit this @marlusclayton