transaction block for saving logs