better error handlind and reporting for Key-Value storing