add matrixnet model and some misc stuff