only set domain or searchpath as they are mutually exclusive