refine domain settings