added transaction log write/replay