add support for boolean, byte and long.