support for env-vars and env-vars-set
minor order change. read/write at bottom