fix off-by-one in matching; log some more matching info