slightly better boolean handling