wal: init

@unihorn Let's work on this branch
i do not want to use unsafe... this is fine for now.