add bool support to generic setter method