added bool support