still dinking with global vars