quite a few modifications that allow to test NN with different parameters