turn some global variables into script local variables