update some network code