added support for script variable