better domain check