feature: fixed brain identified issues w/ global vars