use kvs api with http handler