add basic implementation for new boolean matching