update code to last release
fix mnet function declaration
fix mnet declaration