implement setter/getter for globals