remove some debugging code and useless purges