remove some globals