clear globals before nuking directory