switch all env variables to global