add some code for net