poss fix globals