retrofitted code added tx and journal