add boolean type support