fixup big leveldb-refactor. works for ets.