bool improvements

Change-Id: I3a3a2122902e1731e95d8469dfe9efc5a6b567ee