fix mnet function declaration