removed dependence on leveldb