add support for allowedValues