purges lots of unused code