[jmdb, nim] Making it work better