hack for complex use of getKeyValue()