wal checksum and bugfixes