i pledge allegiance to the dynamic array
check_malloc added everywhere
some success with transactions. need more testing
freeing committed logs now by using a valid flag