simplified boolean conversion
Merge branch 'master' of github.com:mwaylabs/TMP2