add some more codes with network