remove stuff used by the generator