update NetTool func & some enums def