support nested env
Merge pull request #7 from grosser/support-nested-env

support nested env