Logging and switching order of env vars