bool improvements

Change-Id: I7b66909d467f460d674434ae47c11808d1bf832d