setting domain upon init