bool improvements

Change-Id: I6c2b4a825fffc015f10ef016e239b379a90ad768