moved reading of NNs to constructor