cleanup of unused code and resources.