more general domain matching