fix globals for script include