a complete version of net, not yet check, hope it is ok