new support for value encoding