App.setEnvironment & App.getEnvironment replaced