cleanups in CNeuralNetwork