adjust switch environment