add some code about network