trying to get global vars working.