clear globals between runs + formatting