cleanups in neuralnets