del tmp dirs as well
fixed nasty oversight in location looping logic, cleared passed functions when using a token
allow clearing debug labels