key value store and command line implementation