first attempt at multidomain support