leveldb is optional now