updated network code