connected EnvironmentFactory to preferences