added support for booleans