use kvs api with tcp handler