started using leveldb as datastore