added support for primitive values