WIP reimplement journal with cgo