switch env variables and add domain