switch domain to env