update detect environment settings