fixed logger issue and added support for bool queries