add network code for client events