default environment as second parameter of detectEnvironment method