Fixes :D

got global vars working