added ability to reinit globals
smoke tests