more support for booleans and various other tweaks