bugfixes and usecase for booleans