remove chain search in env_resolve