added support for Environment Script Plugin