handle booleans correctly.