new methods to query key value pairs