bool improvements

Change-Id: I20fbe8d5b25460959d4192f18431a585dbfb260f