some fixes, simple support for booleans