added globals to script