set private
remove some globals