fix boolean handling, issue #28