add setenv attribute support
Merge branch 'add-setenv-option'