enable to switch environment