Clean envoriment variants and set domain