support nested env