important global variables reset to enable multiple runs