make some vars globals