environment detect without process shim