fixed host matcher logic