bool improvements

Change-Id: Idaa24320585f3d2e3ca50c82b1a34fc2c523e56e